package cn.edu.neusoft.cqy917.zyfypt_cqy917.service;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;



public interface CollectService {
    @GET("api.php/create/mod/collect{mod}")
    Call<String>
    collect(@Path("mod") String mod,
              @Query("resid") int resid,
              @Header("SessionID") String SessionID);

    @GET("api.php/delete/mod/collect{mod}")
    Call<String>
    uncollect(@Path("mod") String mod,
            @Query("resid") int resid,
            @Header("SessionID") String SessionID);


    @GET("api.php/exists/mod/collect{mod}")
    Call<String>
    judge(@Path("mod") String mod,
            @Query("resid") int resid,
            @Header("SessionID") String SessionID);
}

